package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.MiddlegroundRoleUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MiddlegroundRoleUserRepository extends JpaRepository<MiddlegroundRoleUser, Long> {


    void deleteAllByUserIdEquals(Long userId);


    List<MiddlegroundRoleUser> findAllByRoleIdEquals(Long roleId);
}
